﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="MoonDataSet" targetNamespace="http://tempuri.org/MoonDataSet.xsd" xmlns:mstns="http://tempuri.org/MoonDataSet.xsd" xmlns="http://tempuri.org/MoonDataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="MoonDBConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="MoonDBConnectionString (Settings)" PropertyReference="ApplicationSettings.CoronaService.Properties.Settings.GlobalReference.Default.MoonDBConnectionString" Provider="System.Data.OleDb" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ResourcesTableAdapter" GeneratorDataComponentClassName="ResourcesTableAdapter" Name="Resources" UserDataComponentName="ResourcesTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="MoonDBConnectionString (Settings)" DbObjectName="Resources" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>DELETE FROM Resources
WHERE   (ResourceId = ?)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="Param2" ColumnName="ResourceId" DataSourceName="Resources" DataTypeServer="DbType.Int32" DbType="Int32" Direction="Input" ParameterName="ResourceId" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="ResourceId" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO `Resources` (`ResourceName`, `ResourceType`, `ResourcePath`) VALUES (?, ?, ?)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="ResourceName" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="ResourceName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="ResourceType" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="ResourceType" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="ResourcePath" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="ResourcePath" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT ResourceId, ResourceName, ResourceType, ResourcePath FROM Resources</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE `Resources` SET `ResourceName` = ?, `ResourceType` = ?, `ResourcePath` = ? WHERE ((`ResourceId` = ?) AND ((? = 1 AND `ResourceName` IS NULL) OR (`ResourceName` = ?)) AND ((? = 1 AND `ResourceType` IS NULL) OR (`ResourceType` = ?)) AND ((? = 1 AND `ResourcePath` IS NULL) OR (`ResourcePath` = ?)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="ResourceName" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="ResourceName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="ResourceType" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="ResourceType" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="ResourcePath" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="ResourcePath" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_ResourceId" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="ResourceId" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_ResourceName" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="ResourceName" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Original_ResourceName" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="ResourceName" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_ResourceType" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="ResourceType" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Original_ResourceType" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="ResourceType" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_ResourcePath" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="ResourcePath" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Original_ResourcePath" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="ResourcePath" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ResourceId" DataSetColumn="ResourceId" />
              <Mapping SourceColumn="ResourceName" DataSetColumn="ResourceName" />
              <Mapping SourceColumn="ResourceType" DataSetColumn="ResourceType" />
              <Mapping SourceColumn="ResourcePath" DataSetColumn="ResourcePath" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="MoonDBConnectionString (Settings)" DbObjectName="Resources" DbObjectType="Table" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByResourceId" GetMethodModifier="Public" GetMethodName="GetDataByResourceId" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByResourceId" UserSourceName="GetDataByResourceId">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT   ResourceId, ResourceName, ResourceType, ResourcePath
FROM      Resources
WHERE   (ResourceId = ?)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="Param2" ColumnName="ResourceId" DataSourceName="Resources" DataTypeServer="DbType.Int32" DbType="Int32" Direction="Input" ParameterName="ResourceId" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="ResourceId" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="MoonDBConnectionString (Settings)" DbObjectName="Resources" DbObjectType="Table" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByResourcePath" GeneratorSourceName="FillBy" GetMethodModifier="Public" GetMethodName="GetDataByResourcePath" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByResourcePath" UserSourceName="GetDataByResourcePath">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT   ResourceId, ResourceName, ResourceType, ResourcePath
FROM      Resources
WHERE   (ResourcePath = ?)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="Param2" ColumnName="ResourcePath" DataSourceName="Resources" DataTypeServer="DbType.StringFixedLength(255)" DbType="String" Direction="Input" ParameterName="ResourcePath" Precision="0" ProviderType="WChar" Scale="0" Size="255" SourceColumn="ResourcePath" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="TagsTableAdapter" GeneratorDataComponentClassName="TagsTableAdapter" Name="Tags" UserDataComponentName="TagsTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="MoonDBConnectionString (Settings)" DbObjectName="Tags" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>DELETE FROM Tags
WHERE   (TagId = ?)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="Param2" ColumnName="TagId" DataSourceName="Tags" DataTypeServer="DbType.Int32" DbType="Int32" Direction="Input" ParameterName="TagId" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="TagId" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>INSERT INTO Tags
                (TagName, ResourceId)
VALUES   (?, ?)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="Param1" ColumnName="TagName" DataSourceName="Tags" DataTypeServer="DbType.StringFixedLength(255)" DbType="String" Direction="Input" ParameterName="TagName" Precision="0" ProviderType="WChar" Scale="0" Size="255" SourceColumn="TagName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="Param2" ColumnName="ResourceId" DataSourceName="Tags" DataTypeServer="DbType.Int32" DbType="Int32" Direction="Input" ParameterName="ResourceId" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="ResourceId" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT TagId, TagName, ResourceId FROM Tags</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>UPDATE  Tags
SET         TagName = ?
WHERE   (TagId = ?)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="Param1" ColumnName="TagName" DataSourceName="Tags" DataTypeServer="DbType.StringFixedLength(255)" DbType="String" Direction="Input" ParameterName="TagName" Precision="0" ProviderType="WChar" Scale="0" Size="255" SourceColumn="TagName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="Param3" ColumnName="TagId" DataSourceName="Tags" DataTypeServer="DbType.Int32" DbType="Int32" Direction="Input" ParameterName="Original_TagId" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="TagId" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="TagId" DataSetColumn="TagId" />
              <Mapping SourceColumn="TagName" DataSetColumn="TagName" />
              <Mapping SourceColumn="ResourceId" DataSetColumn="ResourceId" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="MoonDBConnectionString (Settings)" DbObjectName="Tags" DbObjectType="Table" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByRelation" GetMethodModifier="Public" GetMethodName="GetDataByRelation" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByRelation" UserSourceName="GetDataByRelation">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT   TagId, TagName, ResourceId
FROM      Tags
WHERE   (ResourceId = ?)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="Param2" ColumnName="ResourceId" DataSourceName="Tags" DataTypeServer="DbType.Int32" DbType="Int32" Direction="Input" ParameterName="ResourceId" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="ResourceId" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="MoonDBConnectionString (Settings)" DbObjectName="Tags" DbObjectType="Table" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByTagName" GeneratorSourceName="FillBy" GetMethodModifier="Public" GetMethodName="GetDataByTagName" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByTagName" UserSourceName="GetDataByTagName">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT   TagId, TagName, ResourceId
FROM      Tags
WHERE   (TagName LIKE ?)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="Param2" ColumnName="TagName" DataSourceName="Tags" DataTypeServer="DbType.StringFixedLength(255)" DbType="String" Direction="Input" ParameterName="TagName" Precision="0" ProviderType="WChar" Scale="0" Size="255" SourceColumn="TagName" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="MoonDBConnectionString (Settings)" DbObjectName="Tags" DbObjectType="Table" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByTagNameAndRelation" GeneratorSourceName="FillBy" GetMethodModifier="Public" GetMethodName="GetDataByTagNameAndRelation" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByTagNameAndRelation" UserSourceName="GetDataByTagNameAndRelation">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT   TagId, TagName, ResourceId
FROM      Tags
WHERE   (TagName = ?) AND (ResourceId = ?)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="Param3" ColumnName="TagName" DataSourceName="Tags" DataTypeServer="DbType.StringFixedLength(255)" DbType="String" Direction="Input" ParameterName="TagName" Precision="0" ProviderType="WChar" Scale="0" Size="255" SourceColumn="TagName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="Param4" ColumnName="ResourceId" DataSourceName="Tags" DataTypeServer="DbType.Int32" DbType="Int32" Direction="Input" ParameterName="ResourceId" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="ResourceId" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="MoonDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="MoonDataSet" msprop:Generator_DataSetName="MoonDataSet" msprop:EnableTableAdapterManager="true">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Resources" msprop:Generator_UserTableName="Resources" msprop:Generator_RowDeletedName="ResourcesRowDeleted" msprop:Generator_RowChangedName="ResourcesRowChanged" msprop:Generator_RowClassName="ResourcesRow" msprop:Generator_RowChangingName="ResourcesRowChanging" msprop:Generator_RowEvArgName="ResourcesRowChangeEvent" msprop:Generator_RowEvHandlerName="ResourcesRowChangeEventHandler" msprop:Generator_TableClassName="ResourcesDataTable" msprop:Generator_TableVarName="tableResources" msprop:Generator_RowDeletingName="ResourcesRowDeleting" msprop:Generator_TablePropName="Resources">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ResourceId" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="1" msprop:Generator_UserColumnName="ResourceId" msprop:Generator_ColumnPropNameInRow="ResourceId" msprop:Generator_ColumnVarNameInTable="columnResourceId" msprop:Generator_ColumnPropNameInTable="ResourceIdColumn" type="xs:int" />
              <xs:element name="ResourceName" msprop:Generator_UserColumnName="ResourceName" msprop:Generator_ColumnPropNameInRow="ResourceName" msprop:Generator_ColumnVarNameInTable="columnResourceName" msprop:Generator_ColumnPropNameInTable="ResourceNameColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ResourceType" msprop:Generator_UserColumnName="ResourceType" msprop:Generator_ColumnPropNameInRow="ResourceType" msprop:Generator_ColumnVarNameInTable="columnResourceType" msprop:Generator_ColumnPropNameInTable="ResourceTypeColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ResourcePath" msprop:Generator_UserColumnName="ResourcePath" msprop:Generator_ColumnPropNameInRow="ResourcePath" msprop:Generator_ColumnVarNameInTable="columnResourcePath" msprop:Generator_ColumnPropNameInTable="ResourcePathColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="Tags" msprop:Generator_UserTableName="Tags" msprop:Generator_RowDeletedName="TagsRowDeleted" msprop:Generator_RowChangedName="TagsRowChanged" msprop:Generator_RowClassName="TagsRow" msprop:Generator_RowChangingName="TagsRowChanging" msprop:Generator_RowEvArgName="TagsRowChangeEvent" msprop:Generator_RowEvHandlerName="TagsRowChangeEventHandler" msprop:Generator_TableClassName="TagsDataTable" msprop:Generator_TableVarName="tableTags" msprop:Generator_RowDeletingName="TagsRowDeleting" msprop:Generator_TablePropName="Tags">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="TagId" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="1" msprop:Generator_UserColumnName="TagId" msprop:Generator_ColumnPropNameInRow="TagId" msprop:Generator_ColumnVarNameInTable="columnTagId" msprop:Generator_ColumnPropNameInTable="TagIdColumn" type="xs:int" />
              <xs:element name="TagName" msprop:Generator_UserColumnName="TagName" msprop:Generator_ColumnPropNameInRow="TagName" msprop:Generator_ColumnVarNameInTable="columnTagName" msprop:Generator_ColumnPropNameInTable="TagNameColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ResourceId" msprop:Generator_UserColumnName="ResourceId" msprop:Generator_ColumnPropNameInRow="ResourceId" msprop:Generator_ColumnVarNameInTable="columnResourceId" msprop:Generator_ColumnPropNameInTable="ResourceIdColumn" type="xs:int" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Resources" />
      <xs:field xpath="mstns:ResourceId" />
    </xs:unique>
    <xs:unique name="Tags_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Tags" />
      <xs:field xpath="mstns:TagId" />
    </xs:unique>
    <xs:keyref name="FK_Resources_Tags" refer="Constraint1" msprop:rel_Generator_UserRelationName="FK_Resources_Tags" msprop:rel_Generator_RelationVarName="relationFK_Resources_Tags" msprop:rel_Generator_UserChildTable="Tags" msprop:rel_Generator_UserParentTable="Resources" msprop:rel_Generator_ParentPropName="ResourcesRow" msprop:rel_Generator_ChildPropName="GetTagsRows">
      <xs:selector xpath=".//mstns:Tags" />
      <xs:field xpath="mstns:ResourceId" />
    </xs:keyref>
  </xs:element>
</xs:schema>